#-------------------------------------------------------------------------------
#	file Makefile
#	brief
#		sm-test makefile
#
#	$Id: Makefile 235 2014-01-14 02:54:35Z ac.verbeck@gmail.com $
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
#	Copyright and Disclaimer Notice
#
#	Copyright (c) 2012 A.C. Verbeck
#
#	This file is part of SM: A State Machine Library.
#
#	SM is free software: you can redistribute it and/or modify
#	it under the terms of the GNU General Public License as published by
#	the Free Software Foundation, either version 3 of the License, or
#	(at your option) any later version.
#
#	SM is distributed in the hope that it will be useful,
#	but WITHOUT ANY WARRANTY; without even the implied warranty of
#	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#	GNU General Public License for more details.
#
#	You should have received a copy of the GNU General Public License
#	along with SM.  If not, see <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#	Environment
#-------------------------------------------------------------------------------
CPPFLAGS	= -DBLD_DEBUG -Wall -Werror
CFLAGS		= --std=c99
CXXFLAGS	= --std=c++11
LDLIBS		= -lpopt

#-------------------------------------------------------------------------------
#	Rules
#-------------------------------------------------------------------------------
.PHONY:	all clean format
all:		test2-fix test3-fix test4 test5

clean:;		$(RM) *.o
			$(RM) *.bak
			$(RM) *.exe
			$(RM) *.cpp.orig
			$(RM) *.h.orig

format:;	astyle --pad-header --unpad-paren --style="k&r" --indent=tab --lineend=windows --recursive "*.cpp" "*.c"

#-------------------------------------------------------------------------------
#	Dependencies
#-------------------------------------------------------------------------------
test2-fix:	test2-fix.cpp

test3-fix:	test3-fix.cpp

test4:		test4.cpp

test5:		test5.c

#
#	End: Makefile
#
